package com.youhome.model;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

@Data
@ApiModel
@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
public class Dict {

    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "名称")
    private String name;

    @JsonIgnore
    @ApiModelProperty(value = "父级ID")
    private Long pid;

    @JsonIgnore
    @ApiModelProperty(value = "排序")
    private String sort;

    @JsonIgnore
    @ApiModelProperty(value = "备注")
    private String remark;

    @JsonIgnore
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    @JsonIgnore
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @JsonIgnore
    @ApiModelProperty(value = "是否启用")
    private Boolean enabled;
}